package com.example.user.controller;

import com.alibaba.fastjson.JSONObject;
import com.usian.common.kafka.KafkaTopic;
import com.usian.model.behavior.pojos.ApFollowBehavior;
import com.usian.model.user.pojos.ApUserFollow;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class KfakaController {
    @Autowired
    private  KafkaTemplate kafkaTemplate;

    @GetMapping("send_message")
    public void getTopic(String message){
        kafkaTemplate.send(KafkaTopic.TOPIC, message);
    }

}
